#pragma once
#include "ogre/OgreSceneManager.h"
#include "ogre/OgreFrameListener.h"

using namespace Ogre;
class CBrick : public FrameListener
{
public:
	CBrick(void);
	~CBrick(void);
	void createScene( SceneManager* sceneMgr, SceneNode* parent, int i, int j );
	void createFrameListener( Root * root );
	Vector3 GetVector3()
	{
		return mPos;
	}
	SceneNode* GetNode()
	{
		return mNode;
	}
	void Right();
	void Left();
	bool AnimationEnd();

protected:
	bool frameStarted(const FrameEvent& evt);
	bool frameEnded(const FrameEvent& evt);
private:
	int mRow;
	int mList;

	Entity* mEntity;
	SceneNode* mNode;
	AnimationState *mAnimationState;
	Vector3 mPos;
	Frustum* mDecalFrustum;
};
